﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IntellectShop.Web2.ViewModels.ScheduleEditViewModel>" %>
<%@ Import Namespace="IntellectShop.Web2.Code" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%= Html.Resource("EditScheduleItem")%>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<h1><%= Html.Resource("CourseDetails") %>:</h1>

		<%= Html.DisplayFor(model => Model.Course)%>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="FirstInfo" runat="server">
<div class="sidebaritem">
	<% using (Html.BeginForm())
	{%>
	<%= Html.ValidationSummary(true) %>

		<h2><%= Html.Resource("EditScheduleItem")%>:</h2>
		<%= Html.EditorFor(model => model.ScheduleItem, new { CourseID = Model.Course.CourseID })%>

		<div class="spacer">&nbsp;</div>
		<div class="row">
			<span class="formlabel" style="text-align:right;">
				<input type="submit" value="<%= Html.Encode(Html.Resource("Strings, Save"))%>" class="submit"/>
			</span>
		</div>
		<div class="spacer">&nbsp;</div>

	<% } %>
	<div class="row">
		<%= Html.ActionLink(Html.Resource("Strings, BackToList"), "Details", "Course", new { id = Model.Course.CommodityID }, null)%>
	</div>
</div>
</asp:Content>